#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d %d", &a, &b);
	int i = 1;
	int min = a < b ? a : b;
	int max = a > b ? a : b;
	while (min * i % max)
	{
		i++;
	}
	printf("%d", min * i);

	return 0;
}